package com.xiangban.dao;

import com.xiangban.model.Relation;
import com.xiangban.model.dto.OrderDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ly
 * @date 2021/12/1 12:03
 */
@Repository
public interface RelationMapper {

    List<Relation> getFamilyByUserId(Relation relation);

    void insertFamilyByUserId(Relation relation);


    Relation getFamilyByRelationId(Relation relation);

    void updateFamily(Relation relation);

    void updateUseNumber(OrderDto orderDto);

    void updateUseNumberMinus(OrderDto orderByOrderNo);
}
